package com.xique.door.project.xyl.bean.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xique.common.core.annotation.Excel;
import com.xique.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: caogq
 * @Date: 2021/12/27 16:58
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class XylAlarmRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    /** 房号 */
    @Excel(name = "房号")
    private String houseCode;

    /** 户籍 */
    @Excel(name = "户籍")
    private String censusRegister;

    /** 楼栋编号 */
    @Excel(name = "楼栋编号")
    private Long buildingId;

    /** 楼栋名称 */
    @Excel(name = "楼栋名称")
    private String buildingName;

    /** 入住时间 */
    @Excel(name = "入住时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date checkInDate;

    /** 入住人数 */
    @Excel(name = "入住人数")
    private Integer inPersonNum;

    /** 租房类型 */
    @Excel(name = "租房类型")
    private String type;

    /** 近一周出入次数 */
    @Excel(name = "近一周出入次数")
    private Integer inoutNum;

    /** 近一周访客人数 */
    @Excel(name = "近一周访客人数")
    private Integer visitiorNum;

    /** 近一周访客出入次数 */
    @Excel(name = "近一周访客出入次数")
    private Integer visitiorInoutNum;

    /** 告警状态 */
    @Excel(name = "告警状态 1未处理 2已处理")
    private String status;

    /** 告警开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    /** 告警结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    private String reason;

}
